package com.baitiaojun.user.mapper;

import com.baitiaojun.api.domain.user.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(@Param("id") Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(@Param("id") Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectUserByPhone(@Param("phone") String phone);

    User selectUserBySign(@Param("sign") String sign);

    Object selectByEmail(@Param("email") String email);

    Integer selectIsExistsUserByPrimaryKey(@Param("id") Long id);
}